<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

if($res->itemCount){
echo Yii::t('content','Imobiliário');
 $this->widget('zii.widgets.CListView', array(
    'viewData'=>  array('model'=>'RealEstate'),
    
	'dataProvider'=>$res,
     'emptyText'=>'',
	'itemView'=>'/realEstate/search',
    //'sortableAttributes' => array('date_add','square_meters'),
));
}
if($resBusiness->itemCount){
echo Yii::t('content','Negócios');
$this->widget('zii.widgets.CListView', array(
    'viewData'=> array('model'=> 'Business'),
	'dataProvider'=>$resBusiness,
    'emptyText'=>'',
	'itemView'=>'/realEstate/search',
    //'sortableAttributes' => array('date_add','square_meters'),
));
}

if($resHomemade->itemCount){
echo Yii::t('content','Produtos caseiros');
$this->widget('zii.widgets.CListView', array(
    'viewData'=> array('model'=> 'Homemade'),
	'dataProvider'=>$resHomemade,
    'emptyText'=>'',
	'itemView'=>'/realEstate/search',
    //'sortableAttributes' => array('date_add','square_meters'),
));
}

if($resService->itemCount){
echo Yii::t('content','Serviços');
$this->widget('zii.widgets.CListView', array(
    'viewData'=>  array('model'=>'Service'),
	'dataProvider'=>$resService,
    'emptyText'=>'',
	'itemView'=>'/realEstate/search',
    //'sortableAttributes' => array('date_add','square_meters'),
));
}
?>
